package com.gl.organigrama.services.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.gl.organigrama.json.dto.NodoDTOBuilder;
import com.gl.organigrama.services.INodoServices;
import com.gl.organigrama.services.NodoDTOService;
import com.gl.organigrama.vos.Nodo;


@Service
@Transactional
public class NodoDTOServiceImpl implements NodoDTOService{

	@Autowired
	private INodoServices nodoService;
	
	@Override
	public List<List<Object>> getChart(Long id) {
		
		Nodo nodo = nodoService.get(id);
		return NodoDTOBuilder.build(nodo);
	}

}
